package com.yuan.department.dao;

import java.sql.SQLException;
import java.util.List;

public interface IBaseDao<T> {
    // 插入操作
    public Integer insert(T t) throws SQLException;

    // 根据id来查询
    public T selectById(Integer id) throws SQLException;

    // 根据id来更新
    public Integer updateById(T t) throws SQLException;

    // 根据id删除
    public Integer deleteById(Integer id) throws SQLException;

    // 查询全部
    public List<T> selectList() throws SQLException;
}
